<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>角色管理</title>
	<link href="<s:url value="/"/>resources/css/role.css" rel="stylesheet" />
	<style>
	<!--
	.jtable-setting-command-button{
		background: url('${pageContext.request.contextPath}/resources/js/jtable/themes/lightcolor/setting.jpg') no-repeat;
		width: 16px;
		height: 16px;
	}
	-->
	</style>
	<script src="<s:url value="/"/>resources/js/role.js"></script>
</head>
<body>
	<div class="container-fluid roleView">
		<div class="row-fluid full-height">
			<form:form id="queryRoleForm" cssClass="conditionRole form-inline" modelAttribute="role">
			<form:hidden id="rorgId" path="orgId"/>
			<div class="control-group " >	
				<form:label cssClass="control-label" for="rname" path="sysOrg.name" >所属组织:</form:label>
				<form:input id="rname" path="sysOrg.name" readonly="true"  onclick="showRoleOrgTree();" cssClass="input-medium"/>
				
				<button type="button" class="btn" onclick="showRoleOrgTree(); return false;">请选择</button>
				&nbsp;&nbsp;&nbsp;&nbsp;
				
				<form:label cssClass="control-label" for="roleName" path="roleName" >角色名称:</form:label>
				<form:input id="roleName" path="roleName" cssClass="input-medium"/>
				<input id="queryBtn" type="button" class="btn btn-primary" onclick="if(queryRole()==false) return false;" value="查询"/>
				<input type="reset" class="btn" value="重置" onclick="roleResets()"/>
			</div>
			
				
		</form:form>
			<div style="margin-left: 10px;">
			<div class="control-group ">
				<input type="button" class="btn btn-primary"  value="增加角色" style="width:100px;" onclick="if(addRole()==false) return false;"/>
				<input type="button" class="btn btn-primary"  value="人员配置" style="width:100px;" onclick=""/>
			</div>
			</div>
			<div id="rmenuContent" class="rmenuContent"  >
				<ul id="roleOrgTree" class="ztree" style="margin-top:0; width:150px;"></ul>
			</div>
			<div id="RoleContainer"/>
		</div>
	</div>
	<div id="operationRole" style="display: none;">
	<center>
		<img alt="查看" style="cursor: pointer;" onclick="lookRole('param:roleId','param:roleName')" 
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/setting.jpg"/>
		<img alt="编辑" style="cursor: pointer;" onclick="updateRole('param:roleId');" 
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/edit.png"/>	
		<img alt="删除" style="cursor: pointer;" onclick="deleteRole('param:roleId');"
			src="<s:url value="/"/>resources/js/jtable/scripts/jtable/themes/lightcolor/delete.png"/>		
	</center>
	</div>
</body>
</html>
